using KinonekoSoftware.Studio.Pages.Timelines;

namespace KinonekoSoftware.Studio.Views
{
    public partial class RepositoryGalleryRelationCardView : UserControl
    {
        public RepositoryGalleryRelationCardView()
        {
            InitializeComponent();
        }

        private void ItemButtonClick(object sender, RoutedEventArgs e)
        {
            if (sender is Avalonia.Controls.Button { CommandParameter: Type tf } && DataContext is RepositoryGalleryViewModel vm)
            {
                //
                //
                vm.GotoRelationCommand?.Execute(tf);
            }
        }
    }
}